﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<table class="block" cellpadding="0" cellspacing="0">
    <tr>
        <th colspan="2">
            Forms Authentication Cookie
        </th>
    </tr>
    <tr>
        <td width="25%">
            Domain
        </td>
        <td>
           <%=ViewData["CookieDomain"]%>
        </td>
    </tr>
    <tr>
        <td>
            Expires
        </td>
        <td>
             <%=ViewData["CookieExpires"]%> 
        </td>
    </tr>
    <tr>
        <td>
            Name
        </td>
        <td>
              <%=ViewData["CookieName"]%>
        </td>
    </tr>
    <tr>
        <td>
            Path
        </td>
        <td>
              <%=ViewData["CookiePath"]%>
        </td>
    </tr>
    <tr>
        <td>
            Secure
        </td>
        <td>
             <%=ViewData["CookieSecure"]%> 
        </td>
    </tr>
    <tr>
        <td>
            Value
        </td>
        <td><%=ViewData["CookieValue"]%> 
           
        </td>
    </tr>
</table>
<br />
<table class="block" cellpadding="0" cellspacing="0">
    <tr>
        <th colspan="2">
            Forms Authentication Ticket
        </th>
    </tr>
    <tr>
        <td width="25%">
             Cookie Path
        </td>
        <td>
        <%=ViewData["TicketCookiePath"]%> 
          
        </td>
    </tr>
    <tr>
        <td>
             Expiration
        </td>
        <td>
        <%=ViewData["TicketExpiration"]%> 
           
        </td>
    </tr>
    <tr>
        <td>
             Expired
        </td>
        <td>
        <%=ViewData["TicketExpired"]%> 
           
        </td>
    </tr>
    <tr>
        <td>
             Is Persistent
        </td>
        <td>
        <%=ViewData["TicketIsPersistent"]%> 
           
        </td>
    </tr>
    <tr>
        <td>
             Issue Date
        </td>
        <td>
        <%=ViewData["TicketIssueDate"]%> 
           
        </td>
    </tr>
    <tr>
        <td>
             Name
        </td>
        <td>
        <%=ViewData["TicketName"]%> 
           
        </td>
    </tr>
    <tr>
        <td>
             User Data
        </td>
        <td>
        <%=ViewData["TicketUserData"]%> 
           
        </td>
    </tr>
    <tr>
        <td>
             Version
        </td>
        <td>
        <%=ViewData["TicketVersion"]%> 
           
        </td>
    </tr>
</table>
<br />
<table class="block" cellpadding="0" cellspacing="0">
    <tr>
        <th colspan="2">
            CAS Authentication Ticket
        </th>
    </tr>
    <tr>
        <td width="25%">
            NetId
        </td>
        <td>
        <%=ViewData["CasNetId"]%> 
          
        </td>
    </tr>
    <tr>
        <td>
            Service Ticket
        </td>
        <td>
        <%=ViewData["CasServiceTicket"]%> 
            
        </td>
    </tr>
    <tr>
        <td>
            Originating Service Name
        </td>
        <td>
        <%=ViewData["CasOriginatingServiceName"]%> 
           
        </td>
    </tr>
    <tr>
        <td>
            Client Host Address
        </td>
        <td>
        <%=ViewData["CasClientHostAddress"]%> 
           
        </td>
    </tr>
    <tr>
        <td>
            Valid From Date
        </td>
        <td>
        <%=ViewData["CasValidFromDate"]%> 
          
        </td>
    </tr>
    <tr>
        <td>
            Valid Until Date
        </td>
        <td>
        <%=ViewData["CasValidUntilDate"]%> 
         
        </td>
    </tr>
    <tr>
        <td>
            Proxy Granting Ticket IOU
        </td>
        <td>
        <%=ViewData["ProxyGrantingTicketIou"]%> 
          
        </td>
    </tr>
    <tr>
        <td>
            Proxy Granting Ticket
        </td>
        <td>
        <%=ViewData["ProxyGrantingTicket"]%> 
         
        </td>
    </tr>
    <tr>
        <td valign="top"> 
            Proxies
        </td>
        <td>
        <%=ViewData["Proxies"]%> 
          
        </td>
    </tr>
    <tr>
        <td>
            Assertion
        </td>
        <td>
        <%=ViewData["CasAssertion"]%> 
           
        </td>
    </tr>
</table>
<br />
<table class="block" cellpadding="0" cellspacing="0">
    <tr>
        <th colspan="2">
            CAS Assertion
        </th>
    </tr>
    <tr>
        <td width="25%">
            Principal Name
        </td>
        <td>
        <%=ViewData["AssertionPrincipalName"]%> 
           
        </td>
    </tr>
    <tr>
        <td>
            Valid From Date
        </td>
        <td>
        <%=ViewData["AssertionValidFromDate"]%> 
           
        </td>
    </tr>
    <tr>
        <td>
            Valid Until Date
        </td>
        <td>
        <%=ViewData["AssertionValidUntilDate"]%> 
           
        </td>
    </tr>
    <tr>
        <td>
            Attributes
        </td>
        <td>
        
           <% 
               
               string newLine = "<br />";
               StringBuilder assertionValuesBuilder = new StringBuilder();
               foreach (KeyValuePair<string, IList<string>> item in (Dictionary<string, IList<string>>)ViewData["AssertionAttributes"])
               { 
                     foreach (string value in item.Value)
                     {
                         assertionValuesBuilder.Append(value + newLine);
                     }

                     if (assertionValuesBuilder.Length > newLine.Length)
                     {
                         assertionValuesBuilder.Length -= newLine.Length;
                     }
                    Response.Write(assertionValuesBuilder.ToString());
               }
               %> 
        </td>
    </tr>
</table>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Default</h2>

</asp:Content>
